﻿using InternetSpiderLib;
using System;
using System.Collections.Generic;
using System.Text;
using WeChatGZHTextExtractor.BusinessCreaters;

namespace WeChatGZHTextExtractor.Tools
{
    public static class BusinessHelper
    {
        public static void InitUrl(BusinessManager manager)
        {
            manager.BusinessCreater = new SelectBusinessCreater(new List<IBusinessCreater>
            {
                /*  创建业务的顺序
                 *      1. 获取没有处理的详细页面信息
                 *      2. 获取列表页面信息
                 */
                 
                new BC_MonitoringUrl(),
                //new BC_ExistingAccountUrl(),
                new BC_NewAccountUrl(),
            });
        }

        public static void InitImage(BusinessManager manager)
        {
            manager.BusinessCreater = new SelectBusinessCreater(new List<IBusinessCreater>
            {
                new BC_DownloadImage()
            });
        }

        internal static void InitSendData(BusinessManager manager)
        {
            manager.BusinessCreater = new SelectBusinessCreater(new List<IBusinessCreater>
            {
                new BC_SendData()
            });
        }
    }
}
